package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.NursinghomeregIstrationMapper;
import com.ruoyi.domain.NursinghomeregIstration;
import com.ruoyi.service.INursinghomeregIstrationService;

/**
 * NursinghomeregIstrationService业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class NursinghomeregIstrationServiceImpl implements INursinghomeregIstrationService 
{
    @Autowired
    private NursinghomeregIstrationMapper nursinghomeregIstrationMapper;

    /**
     * 查询NursinghomeregIstration
     * 
     * @param registrationId NursinghomeregIstration主键
     * @return NursinghomeregIstration
     */
    @Override
    public NursinghomeregIstration selectNursinghomeregIstrationByRegistrationId(Long registrationId)
    {
        return nursinghomeregIstrationMapper.selectNursinghomeregIstrationByRegistrationId(registrationId);
    }

    /**
     * 查询NursinghomeregIstration列表
     * 
     * @param nursinghomeregIstration NursinghomeregIstration
     * @return NursinghomeregIstration
     */
    @Override
    public List<NursinghomeregIstration> selectNursinghomeregIstrationList(NursinghomeregIstration nursinghomeregIstration)
    {
        return nursinghomeregIstrationMapper.selectNursinghomeregIstrationList(nursinghomeregIstration);
    }

    /**
     * 新增NursinghomeregIstration
     * 
     * @param nursinghomeregIstration NursinghomeregIstration
     * @return 结果
     */
    @Override
    public int insertNursinghomeregIstration(NursinghomeregIstration nursinghomeregIstration)
    {
        return nursinghomeregIstrationMapper.insertNursinghomeregIstration(nursinghomeregIstration);
    }

    /**
     * 修改NursinghomeregIstration
     * 
     * @param nursinghomeregIstration NursinghomeregIstration
     * @return 结果
     */
    @Override
    public int updateNursinghomeregIstration(NursinghomeregIstration nursinghomeregIstration)
    {
        return nursinghomeregIstrationMapper.updateNursinghomeregIstration(nursinghomeregIstration);
    }

    /**
     * 批量删除NursinghomeregIstration
     * 
     * @param registrationIds 需要删除的NursinghomeregIstration主键
     * @return 结果
     */
    @Override
    public int deleteNursinghomeregIstrationByRegistrationIds(Long[] registrationIds)
    {
        return nursinghomeregIstrationMapper.deleteNursinghomeregIstrationByRegistrationIds(registrationIds);
    }

    /**
     * 删除NursinghomeregIstration信息
     * 
     * @param registrationId NursinghomeregIstration主键
     * @return 结果
     */
    @Override
    public int deleteNursinghomeregIstrationByRegistrationId(Long registrationId)
    {
        return nursinghomeregIstrationMapper.deleteNursinghomeregIstrationByRegistrationId(registrationId);
    }
}
